#ifndef __SPI_H__
#define __SPI_H__
#include "stm32f4xx.h"

 	    													  
void spi_init(SPI_TypeDef * SPIX);
void spi_set_speed(SPI_TypeDef * SPIX,u8 SPI_BaudRatePrescaler);
u8 spi_read_write_byte(SPI_TypeDef * SPIX,u8 tx_data);

void spi_write_byte(SPI_TypeDef * SPIX,u8 tx_data);
u8 spi_read_byte(SPI_TypeDef * SPIX);
		 
#endif

